package com.google.wave.extensions.code.eval;

import java.io.Serializable;

/**
 * {@code CodeResult} encapsulates the results of an evaluation.
 *
 * @author schwardo@google.com (Don Schwarz)
 */
public interface CodeResult extends Serializable {
    public static int UNKNOWN = -1;

    boolean isSuccess();
    boolean hasReturnValue();
    String getReturnValueString();

    int getErrorLineNumber();
    int getErrorColumnNumber();
    String getErrorMessage();
}
